/**
 * Created by YW on 2017/12/24.
 */
$(function () {
    //新闻左侧鼠标放置平滑垂直移动
    var $newsList=$('.news-list ul li');
    $newsList.mouseenter(function () {
        $('.news-list .animate-line').stop(true, true).animate({
            "top":$(this).position().top
        }, "fast");
        $newsList.find('.date p').removeClass('active');
        $(this).find('.date p').addClass('active');
    });
});